package com.yeshine.opendata.controller.admin;

import com.yeshine.opendata.core.ControllerBase;
import com.yeshine.opendata.entity.SysAdmin;

/**
 * Created by taohj on 2014/7/7.
 */
public abstract class AbstractAdminControllerBase extends ControllerBase {



    public static SysAdmin getCurrentUser(){
        return  (SysAdmin)(getSession().getAttribute("admin"));
    }

    public void setCurrentUser(SysAdmin user){
        getSession().setAttribute("admin",user);
    }



}
